package com.han.hotelplat.service.emscheduling;

import java.util.List;
import java.util.Map;

import com.han.hotelplat.pojo.emscheduling.Emscheduling;


public interface EmschedulingService {
	void saveEmscheduling(Emscheduling emscheduling);
	
	void deleteEmschedulingByTaskId(String taskId);
	
	void deleteEmschedulingByEmId(String emId);
	
	void deleteEmschedulingByTaskIdAndEmId(String taskId, String emId);
	
	List<Emscheduling> getEmschedulingByEmId(String emId, String startTime, String endTime);

	/**
	 * 获取该任务的报名的所有帮工排班信息
		 * @description	
		 * @author  han1088
		 * @param taskId
		 * @param startTime
		 * @param endTime
		 * @return
	 */
	List<Emscheduling> getEmschedulingByTaskId(String taskId, String startTime,
			String endTime);
	/**
	 * 
		 * @description	获取该任务帮工报名人数按日期归总
		 * @author  han1088
		 * @param id
		 * @param startTime
		 * @param endTime
		 * @return
	 */
	Map<String, Integer> getEmschedulingCount(String taskId, String startTime,
			String endTime);
	
	List<Emscheduling> getEmschedulingByEmidAndDate(String emid,
			String date);

	int getEmschedulingDateCount(String taskid, String datetime);
}
